﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminCmsDisplayTypeDetailsControl.ascx.cs"
    Inherits="BIS.Portal.Modules.CMS.Adm.AdminCmsDisplayTypeDetailsControl" %>
<style type="text/css">
    .waper
    {
        width: 1100px;
        margin: 0 auto;
        float: left;
        clear: both;
    }
    .content
    {
        width: 500px;
        border-color: Gray;
        border-width: 1px;
        border-style: solid;
        float: left;
    }
    .center
    {
        width: 96px;
        text-align: center;
        float: left;
        height: 100px;
        margin-top: 150px;
    }
    .style1
    {
        width: 66px;
    }
    .style2
    {
        width: 164px;
    }
    .style4
    {
        width: 95px;
    }
</style>

<script src="JS/jquery-1.4.2.js" type="text/javascript"></script>

<script src="JS/jquery-ui/jquery.ui.datepicker.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function() {
        $("#<%=txtToDate.ClientID %>").datepicker();
        $("#<%=txtFromDate.ClientID %>").datepicker();
    });	
</script>

<div class="waper">
    <div class="content">
        <div style="float: left; clear: both; margin-left: 10px">
            <div style="width: 490px; height:30px; background-color: #C6C6C6">
                <b>DANH SÁCH SẢN PHẨM CHƯA THUỘC TOP HIỂN THỊ</b></div>
            <div style="width: 490px; float: left; margin-top: 20px">
                <table style="border-style: none; border-color: inherit; border-width: 0px; width: 490px; height: 110px;">
                    <tr>
                        <td class="style1">
                            Từ khóa :
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtKeyword" Width="130px" runat="server"></asp:TextBox>
                        </td>
                        <td class="style4">
                            Nhóm hiển thị :
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlCategoryName" runat="server" Height="20px" Width="135px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Tin :
                        </td>
                        <td class="style2">
                            <asp:DropDownList ID="ddlIsHotArticle" runat="server" Height="20px" Width="135px">
                                <asp:ListItem Text="--- Toàn bộ ---" Value="-1" />
                                <asp:ListItem Text="Thông thường" Value="0" />
                                <asp:ListItem Text="Tin nổi bật" Value="1" />
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            Trạng thái :
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" Height="20px" Width="135px">
                                <asp:ListItem Value="0">Tạm ẩn</asp:ListItem>
                                <asp:ListItem Value="1">Hiển thị</asp:ListItem>
                                <asp:ListItem Value="99">Xóa logic</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Đăng từ :
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="txtFromDate" runat="server" Width="130px" Height="20px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtFromDate"
                                ErrorMessage="*" ValidationExpression="^(((((0[13578])|([13578])|(1[02]))[\-\/\s]?((0[1-9])|([1-9])|([1-2][0-9])|(3[01])))|((([469])|(11))[\-\/\s]?((0[1-9])|([1-9])|([1-2][0-9])|(30)))|((02|2)[\-\/\s]?((0[1-9])|([1-9])|([1-2][0-9]))))[\-\/\s]?\d{4})(\s(((0[1-9])|([1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$"></asp:RegularExpressionValidator>
                        </td>
                        <td class="style4">
                            Đăng đến :
                        </td>
                        <td>
                            <asp:TextBox ID="txtToDate" runat="server" Width="130px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtToDate"
                                ErrorMessage="*" ValidationExpression="^(((((0[13578])|([13578])|(1[02]))[\-\/\s]?((0[1-9])|([1-9])|([1-2][0-9])|(3[01])))|((([469])|(11))[\-\/\s]?((0[1-9])|([1-9])|([1-2][0-9])|(30)))|((02|2)[\-\/\s]?((0[1-9])|([1-9])|([1-2][0-9]))))[\-\/\s]?\d{4})(\s(((0[1-9])|([1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    </table>
            </div>
        </div>
        <div style="float: left; clear: both; margin: 5 0 0 10">
            <div style="float: right; clear: both; height: 25px; width: 131px;">
                &nbsp;<asp:Button ID="btnSearch" runat="server" Text="Tìm Kiếm" Width="125px" OnClick="btnSearch_Click" />
                        </div>
            <asp:GridView ID="grvArticle" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                Width="490px" HeaderStyle-BackColor="AliceBlue" HeaderStyle-Height="30px" 
                OnPageIndexChanging="grvArticle_PageIndexChanging" Height="158px">
                <Columns>
                    <asp:TemplateField HeaderText="Chọn">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSell" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tiêu đề">
                        <ItemTemplate>
                            <asp:Literal ID="ltrArticleTitle" runat="server" Text='<%#Eval("Article_title") %>'></asp:Literal>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày đăng">
                        <ItemTemplate>
                            <asp:Literal ID="ltrPostDate" runat="server" Text='<%#Eval("Post_date") %>'></asp:Literal>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tin nổi bật">
                        <ItemTemplate>
                            <asp:Literal ID="ltrIsHot" runat="server" Text=""></asp:Literal>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Trạng thái">
                        <ItemTemplate>
                            <asp:Literal ID="ltrStatus" runat="server" Text=""></asp:Literal>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="AliceBlue" Height="30px"></HeaderStyle>
            </asp:GridView>
        </div>
    </div>
    <div class="center">
        <asp:Button ID="btnRight" runat="server" Text=">>" Width="61px" OnClick="btnRight_Click" />
        <br />
        <br />
        <asp:Button ID="btnLeft" runat="server" Text="<<" Width="61px" OnClick="btnLeft_Click" />
    </div>
    <div class="content">
        <div style="width: 490px; height: 161px; margin-left: 10px">
            <table style="width: 490px;">
                <tr>
                    <td>
                        <div style="width: 480px; height: 28px; background-color:#c6c6c6">
                            <b>DANH SÁCH NỘI DUNG THUỘC TOP HIỂN THỊ</b></div>
                        <div>
                            <b style="font-size: 23px; color: Red">Tin nổi bật trong tuần</b></div>
                    </td>
                </tr>
            </table>
        </div>
        <div style="float: left; clear: both; margin: 5 0 0 10">
            <div style="float: right; clear: both">
                <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật thứ tự hiển thị" /></div>
            <asp:GridView ID="grvDisplaySpecial" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                Width="490px" HeaderStyle-BackColor="AliceBlue" HeaderStyle-Height="30px" OnPageIndexChanging="grvDisplaySpecial_PageIndexChanging">
                <Columns>
                    <asp:TemplateField HeaderText="Chọn">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSell" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tiêu đề">
                        <ItemTemplate>
                            <asp:Literal ID="ltrArticleTitle" runat="server" Text='<%#Eval("Article_title") %>'></asp:Literal>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày đăng">
                        <ItemTemplate>
                            <asp:Literal ID="ltrPostDate" runat="server" Text='<%#Eval("Post_date") %>'></asp:Literal>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tin nổi bật">
                        <ItemTemplate>
                            <asp:Literal ID="ltrIsHot" runat="server" Text=""></asp:Literal>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thứ tự hiển thị">
                        <ItemTemplate>
                            <asp:TextBox ID="txtPriority" runat="server" Width="30px"></asp:TextBox>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Trạng thái">
                        <ItemTemplate>
                            <asp:Literal ID="ltrStatus" runat="server" Text=""></asp:Literal>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="AliceBlue" Height="30px"></HeaderStyle>
            </asp:GridView>
        </div>
    </div>
</div>
